﻿<%@ Page Language="VB" MasterPageFile="~/MainLayout.master" AutoEventWireup="false" CodeFile="AnnouncementEntry.aspx.vb" Inherits="AnnouncementEntry" title="Untitled Page" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <h1>Announcement Entry</h1>
    <hr />
        <asp:Label ID="lblAnnouncementUID" runat="server" Visible="false" />
        <asp:Label ID="lblStaffUID" runat="server" Visible="false" />
       <div  runat="server" id="divError" class="msg-box-error" visible="false" enableviewstate="false">
    
        <span class="title">Error</span><br />
        <asp:Label ID="lblMsgError" runat="server" Text="ERROR" />
        </div>
<div  runat="server" id="divSuccessful" class="msg-box-success" visible="false" enableviewstate="false">
    
        <span class="title">Successful</span><br />
        <asp:Label ID="lblMsgSuccessful" runat="server" Text="Success" />
    
</div>
        <p><%--Description of the page--%></p>
        <div class="form-container" id="divContentGeneral">
            <table class="form-table" cellpadding="5" cellspacing="5">
                <tr>
                    <th scope="row" style="width: 200px">
                        To :
                    </th>
                    <td>
                        <asp:TextBox ID="txtTolist" runat="server" Width="300px" onKeydown="Return False" TextMode="MultiLine" Rows="4" />
                        <asp:Label ID="lblTolist" runat="server" Visible="false" />
                        <span style="color: Red">*<asp:RequiredFieldValidator ID="rfvtxtTolist" ControlToValidate="txtTolist"
                            SetFocusOnError="true" runat="server" ValidationGroup="Announcement" ErrorMessage="<br />Required"
                            ForeColor="Red" Display="Dynamic" />
                            <asp:ImageButton ID="btnSearch" runat="server" Text="Search" ImageUrl="~/images/style01/Btn-manify.png" />
                        </span>
                    </td>                   
                </tr>
                <tr>
                    <th scope="row" style="width: 200px">
                        Title :
                    </th>
                    <td>
                        <asp:TextBox ID="txtTitle" runat="server" Width="300px"  TextMode="MultiLine" Rows="4"  />
                        <span style="color: Red">*
                            <asp:RequiredFieldValidator ID="rfvtxtTitle" ControlToValidate="txtTitle"
                                runat="server" ValidationGroup="Announcement" ErrorMessage="<br />Required"
                                ForeColor="Red" Display="Dynamic" CssClass="ErrorMsg"/>
                        </span>
                    </td>
                </tr>                
                <tr>
                    <th scope="row" style="width: 200px">
                        Priority :
                    </th>
                    <td>
                        <asp:DropDownList ID="ddlPriority" runat="server">                      
                            <asp:ListItem Text="High" Value="1" />
                            <asp:ListItem Text="Medium" Value="2" />
                            <asp:ListItem Text="Low" Value="3" Selected="True"  />
                        </asp:DropDownList>                       
                    </td>
                </tr>
                <tr>
                    <th scope="row" style="width: 200px">
                        Content :
                    </th>
                    <td>
                        <asp:TextBox ID="txtContent" runat="server" Width="300px" TextMode="MultiLine" Rows="15" />
                        <span style="color: Red">*
                            <asp:RequiredFieldValidator ID="rfvtxtContent" ControlToValidate="txtContent" SetFocusOnError="true"
                                runat="server" ValidationGroup="Announcement" ErrorMessage="<br />Required"
                                ForeColor="Red" Display="Dynamic" />
                        </span>
                    </td>
                </tr>
                <tr>
                    <th scope="row" style="width: 200px">
                        Attachment Description :
                    </th>
                    <td>
                       <asp:TextBox ID="txtAttDesc" runat="server" />                  
                    </td>
                </tr>     
                <tr>
                    <th scope="row" style="width: 200px">
                        Attachment :
                    </th>
                    <td>
                       <asp:FileUpload ID="filAttachment" runat="server" />
                       <asp:LinkButton ID="lnkAttachment" runat="server" Visible="false" />
                       <asp:ImageButton ID="imgDel" runat="server" AlternateText="Delete" ImageUrl="~/images/style01/DeleteButton.png" Visible="false" />
                    </td>
                </tr>               
            </table>
            <div class="Confirmation-Container">
            <table width="100%" style="margin-left:0px;">
                <tr>
                    <td><div class="General-info-title-line"></div></td>
                    <td style="width:170px;"> 
                         &nbsp;<asp:Button ID="btnBack" runat="server" Text="Back"  CssClass="search-btn" Width="60" />
                         &nbsp;<asp:Button ID="BtnSave" runat="server" Text="Save" ValidationGroup="Announcement" CssClass="search-btn" Width="80"/>
                        &nbsp;<cc1:ConfirmButtonExtender ID="CBEBack" runat="server" TargetControlID="btnBack" />
                    </td>
                    <td style="width: 60px"><div class="General-info-title-line"></div></td>
                </tr>
            </table>
            <div class=" form-entry-title" style="line-height:15px; margin-bottom:0px; margin-top:15px;"><span style="color: Red; font-size:10px;">*Required fields</span></div>
            </div>
        </div>      
        <!-- For Popup - ListerList -->
            <asp:Panel ID="pnlToListEntry" runat="server" CssClass="modalPopup" Style="display: none"
                Width="700px" Height="600px">
                <table border="0" cellpadding="0" cellspacing="0" class="PopupContainer" width="600">
        <tr>
            <td style="width:30px; height:41px" background="images/style01/PopupHead-top-left.gif">
            </td>
            <td background="images/style01/PopupHead-top-middle.gif" valign="bottom">
                <table width="100%" border="0" cellpadding="0" cellspacing="0" class="PopupHeader">
                <thead>
                    <tr>
                        <td align="center" style="text-align:center" height="30">
                                        <asp:Label ID="lblToListTitle" runat="server" Text="ToList" />
                          </td>
                        <td align="right" style="text-align:right"><asp:ImageButton ID="imgbutToListClose" runat="server" Width="20px" Height="20px"
                                            AlternateText="Close"  ImageUrl="~/images/style01/Btn-Close.png" /> </td>
                    </tr>
                 </thead>
                </table>    
            </td>
            <td style="width:30px; height:41px" background="images/style01/PopupHead-top-right.gif">
            </td>
        </tr>
        <tr>
        <td width="30" height="30" background="images/style01/Popup-PropertyType-left.gif">&nbsp;</td>
        <td  background="images/style01/Popup-PropertyType-middle.gif" style="background-color:white;">&nbsp;</td>
        <td background="images/style01/Popup-PropertyType-right.gif">&nbsp;</td>
        </tr>
        <tr>
            <td style="width:30px" background="images/style01/Popup-left-middle.gif"></td>
            <td  bgcolor="#FFFFFF" >
                <table width="100%" border="0" cellpadding="0" cellspacing="0" class="PopupDataDisplay" style="height:100%; background-color:#FFFFFF;" >
                    <tr>
                        <td >
                        <div style="height:500px; overflow:auto;">
                                <table width="100%">
                                    <tr>
                                        <td>
                                            <strong>Staff Name</strong>
                                        </td>
                                        <td>
                                        </td>
                                    </tr>
                                     <tr>
                                        <td>
                                            <asp:CheckBoxList ID="chklistStaff" runat="server" />
                                        </td>
                                        <td>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td><asp:Button ID="btnSelect" runat="server" Text="Select" /> &nbsp; <asp:Button ID="btnSelectAll" runat="server" Text="SelectAll" /></td>
                                        <td></td>
                                    </tr>
                                </table>                                
                        </div>  
                        </td>
                    </tr>
                </table>
            </td>
            
            <td style="width:30px" background="images/style01/Popup-right-middle.gif"></td>
        </tr>
        <tr>
            <td style="width:30px; height:55px" background="images/style01/Popup-bottom-left.gif"></td>
            <td style="text-align:right" background="images/style01/Popup-bottom-middle.gif">&nbsp;</td>
            <td style="width:30px; height:55px" background="images/style01/Popup-bottom-right.gif"></td>
        </tr>
    </table>
            </asp:Panel>
            <asp:Button ID="btnToListHiddenNew" runat="server" Style="display: none" />
            <cc1:ModalPopupExtender ID="mpeToListEntry" runat="server" BackgroundCssClass="modalBackground"
                DropShadow="false" PopupControlID="pnlToListEntry" TargetControlID="btnToListHiddenNew"
                EnableViewState="True">
            </cc1:ModalPopupExtender>
            <!-- End Popup --> 
</asp:Content>

